package com.mind.xagame.message.model;
import java.util.List;
import java.util.ArrayList;
import com.mind.common.MessageCode;
import com.mind.core.net.msg.BaseMessage;
import java.util.Date;
import com.mind.core.annotation.Message;
/**用户登录协议
*自动生成类
*/
@Message
public class SC_LoginMsg extends BaseMessage{
	/**用户id*/
	private String id;
	/**用户名称*/
	private String name;
	/**用户经验*/
	private Integer exp;
	/**用户金币*/
	private Integer gold;
	public SC_LoginMsg(){}
	public SC_LoginMsg(String id,String name,Integer exp,Integer gold){
	  this.id=id;
	  this.name=name;
	  this.exp=exp;
	  this.gold=gold;
	}
	/**获取用户id*/
	public String getId(){
		return this.id;
	}
	/**获取用户名称*/
	public String getName(){
		return this.name;
	}
	/**获取用户经验*/
	public Integer getExp(){
		return this.exp;
	}
	/**获取用户金币*/
	public Integer getGold(){
		return this.gold;
	}
	public boolean readImpl() {
		this.id=readString();
		this.name=readString();
		this.exp=readInteger();
		this.gold=readInteger();
		return true;
	}
	public boolean writeImpl() {
		writeString(this.id);
		writeString(this.name);
		writeInteger(this.exp);
		writeInteger(this.gold);
		return true;
	}
	public short getType() {
		return MessageCode.SC_LoginMsg_CODE;
	}
}
